import request from "@/utils/request.js";

export function userInfo(data) {
    return request({
        API_URL: '/users/personal/user_info',
        data
    });
}

export function add_scan_log(data) {
    return request({
        API_URL: '/users/personal/add_scan_log',
        data
    });
}

export function add_collect_shop(data) {
    return request({
        API_URL: '/users/personal/add_collect_shop',
        data
    });
}

export function del_collect_shop(data) {
    return request({
        API_URL: '/users/personal/del_collect_shop',
        data
    });
}

export function add_collect_goods(data) {
    return request({
        API_URL: '/users/personal/add_collect_goods',
        data
    });
}

export function address_edit_add(data) {
    return request({
        API_URL: '/users/personal/address_edit_add',
        data
    });
}

export function get_regions(data) {
    return request({
        API_URL: '/users/Share/get_regions',
        data
    });
}

export function address_info(data) {
    return request({
        API_URL: '/users/personal/address_info',
        data
    });
}

export function address_list(data){
	return request({
	    API_URL: '/users/personal/address_list',
	    data
	});
}

export function address_del(data){
	return request({
	    API_URL: '/users/personal/address_del',
	    data
	});
}

export function save_info(data){
	return request({
	    API_URL: '/users/personal/save_info',
	    data
	});
}

export function update_info(data){
	return request({
	    API_URL: '/users/personal/update_info',
	    data
	});
}

export function order_list(data){
	return request({
	    API_URL: '/users/personal/order_list',
	    data
	});
}

export function refund_order(data){
	return request({
	    API_URL: '/users/personal/refund_order',
	    data
	});
}

export function cancel_order(data){
	return request({
	    API_URL: '/users/personal/cancel_order',
	    data
	});
}

export function del_order(data){
	return request({
	    API_URL: '/users/personal/del_order',
	    data
	});
}

export function confirm_pay_order(data){
	return request({
	    API_URL: '/users/personal/confirm_pay_order',
	    data
	});
}

export function confirm_received(data){
	return request({
	    API_URL: '/users/personal/confirm_received',
	    data
	});
}

export function order_info(data){
	return request({
	    API_URL: '/users/personal/order_info',
	    data
	});
}

export function wallet(data){
	return request({
	    API_URL: '/users/wallet/index',
	    data
	});
}

export function score_list(data){
	return request({
	    API_URL: '/users/wallet/score_list',
	    data
	});
}

export function sum_collect(data){
	return request({
	    API_URL: '/users/personal/sum_collect',
	    data
	});
}

//商品收藏列表
export function collect_goods(data){
	return request({
	    API_URL: '/users/personal/collect_goods',
	    data
	});
}

export function del_collect_goods(data){
	return request({
	    API_URL: '/users/personal/del_collect_goods',
	    data
	});
}

export function bonus_list(data){
	return request({
	    API_URL: '/users/personal/bonus_list',
	    data
	});
}

//自销商品确认收货（购买会员）
export function self_order_confirm(data){
	return request({
	    API_URL: '/users/personal/self_order_confirm',
	    data
	});
}


export function my_shop(data){
	return request({
	    API_URL: '/users/Distributes/my_shop',
	    data
	});
}

export function user_shop_xy(){
	return request({
	    API_URL: '/users/index/user_shop_xy'
	});
}

export function dianpu_poster(data){
	return request({
	    API_URL: '/users/upload/dianpu_poster',
		data
	});
}

export function open_shop(data){
	return request({
	    API_URL: '/users/Distributes/open_shop',
		data
	});
}

export function scan_log_list(data){
	return request({
	    API_URL: '/users/personal/scan_log_list',
		data
	});
}

export function scan_log_del(data){
	return request({
	    API_URL: '/users/personal/scan_log_del',
		data
	});
}

//申请入驻成为商家
export function settled(data) {
    return request({
        API_URL: '/users/personal/settled',
        data
    });
}

export function settled_info(data) {
    return request({
        API_URL: '/users/personal/settled_info',
        data
    });
}

export function feedback(data) {
    return request({
        API_URL: '/users/personal/feedback',
        data
    });
}

export function apply_market(data) {
    return request({
        API_URL: '/users/personal/apply_market',
        data
    });
}

export function apply_market_list(data) {
    return request({
        API_URL: '/users/personal/apply_market_list',
        data
    });
}

export function repair_goods_info(data) {
    return request({
        API_URL: '/users/after_sale/repair_goods_info',
        data
    });
}

export function notice_list(data){
    return request({
        API_URL: '/users/notice/notice_list',
        data
    })
}

export function notice_info(data){
    return request({
        API_URL: '/users/notice/notice_info',
        data
    })
}

export function unread_total(data){
    return request({
        API_URL: '/users/personal/unread_total',
        data
    })
}

export function withdraw(data){
    return request({
        API_URL: '/users/wallet/withdraw',
        data
    })
}

export function withdraw_log(data){
    return request({
        API_URL: '/users/wallet/withdraw_log',
        data
    })
}

export function recharge_log(data){
    return request({
        API_URL: '/users/wallet/recharge_log',
        data
    })
}

export function account_log(data){
    return request({
        API_URL: '/users/wallet/account_log',
        data
    })
}

export function after_list(data){
    return request({
        API_URL: '/users/personal/after_list',
        data
    })
}

export function after_apply(data){
    return request({
        API_URL: '/users/personal/after_apply',
        data
    })
}

export function cancel_after(data){
    return request({
        API_URL: '/users/personal/cancel_after',
        data
    })
}

export function after_info(data){
    return request({
        API_URL: '/users/personal/after_info',
        data
    })
}

export function after_apply_edit(data){
    return request({
        API_URL: '/users/personal/after_apply_edit',
        data
    })
}

export function return_goods(data){
    return request({
        API_URL: '/users/personal/return_goods',
        data
    })
}


export function factory_brand_list(data){
    return request({
        API_URL: '/users/user_shop/factory_brand_list',
        data
    })
}

//小店申请渠道资质记录列表
export function channel_list(data){
    return request({
        API_URL: '/users/user_shop/channel_list',
        data
    })
}

//小店申请渠道资质
export function channel_apply(data){
    return request({
        API_URL: '/users/user_shop/channel_apply',
        data
    })
}

//添加品牌（工厂店）
export function factory_brand_add(data){
    return request({
        API_URL: '/users/user_shop/factory_brand_add',
        data
    })
}

//小店自建类型选择
export function self_set(data){
    return request({
        API_URL: '/users/user_shop/self_set',
        data
    })
}

//小店渠道资质记录列表(工厂店)
export function factory_channel_list(data){
    return request({
        API_URL: '/users/user_shop/factory_channel_list',
        data
    })
}

//小店添加渠道（工厂店）
export function channel_apply_factory(data){
    return request({
        API_URL: '/users/user_shop/channel_apply_factory',
        data
    })
}

//获取所有工厂店品牌列表
export function factory_brand(data){
    return request({
        API_URL: '/users/Share/factory_brand',
        data
    })
}

//同意代理店申请(工厂店)
export function factory_channel_apply(data){
    return request({
        API_URL: '/users/user_shop/factory_channel_apply',
        data
    })
}

//取消代理渠道(工厂店)
export function factory_channel_cancel(data){
    return request({
        API_URL: '/users/user_shop/factory_channel_cancel',
        data
    })
}

//删除代理渠道(工厂店自己添加代理时 )
export function factory_channel_del(data){
    return request({
        API_URL: '/users/user_shop/factory_channel_del',
        data
    })
}

export function sign(data){
    return request({
        API_URL: '/users/personal/sign',
        data
    })
}

export function check_sign(data){
    return request({
        API_URL: '/users/personal/check_sign',
        data
    })
}

export function sign_list(data){
    return request({
        API_URL: '/users/personal/sign_list',
        data
    })
}

//奖品记录
export function prize_log(data){
    return request({
        API_URL: '/users/personal/prize_log',
        data
    })
}

//抽奖
export function prize_in(data){
    return request({
        API_URL: '/users/personal/prize_in',
        data
    })
}

export function users_goods_img(data){
    return request({
        API_URL: '/users/personal/users_goods_img',
        data
    })
}

export function upload_users_goods_img(data){
	// console.log(data)
    return request({
        API_URL: '/users/personal/upload_users_goods_img',
        data
    })
}

export function del_users_goods_img(data){
    return request({
        API_URL: '/users/personal/del_users_goods_img',
        data
    })
}

export function post_reply_list(data){
    return request({
        API_URL: '/users/personal/post_reply_list',
        data
    })
}

export function referer_list(data){
    return request({
        API_URL: '/users/personal/referer_list',
        data
    })
}




